package net.sk.china.common.constants;

/**
 * 支付相关常量类
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2024 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2024/6/13 09:56
 * +----------------------------------------------------------------------
 */
public class PayConstants {
    /** 微信支付 */
    public static final String PAY_TYPE_WE_CHAT = "weixin";
    /** 余额支付 */
    public static final String PAY_TYPE_YUE = "yue";
    /** 线下支付 */
    public static final String PAY_TYPE_OFFLINE = "offline";
    /** 支付宝 */
    public static final String PAY_TYPE_ALI_PAY = "alipay";
    /** 零元付 */
    public static final String PAY_TYPE_ZERO_PAY = "zeroPay";

    /** H5唤起微信支付 */
    public static final String PAY_CHANNEL_WE_CHAT_H5 = "weixinh5";
    /** 公众号 */
    public static final String PAY_CHANNEL_WE_CHAT_PUBLIC = "public";
    /** 小程序 */
    public static final String PAY_CHANNEL_WE_CHAT_PROGRAM = "routine";
    /** 微信App支付ios */
    public static final String PAY_CHANNEL_WE_CHAT_APP_IOS = "weixinAppIos";
    /** 微信App支付android */
    public static final String PAY_CHANNEL_WE_CHAT_APP_ANDROID = "weixinAppAndroid";

    /** 支付宝支付 */
    public static final String PAY_CHANNEL_ALI_PAY = "alipay";
    /** 支付宝App支付 */
    public static final String PAY_CHANNEL_ALI_APP_PAY = "appAliPay";
    public static final String WX_PAY_TRADE_TYPE_JS = "JSAPI";
    public static final String WX_PAY_TRADE_TYPE_H5 = "MWEB";

    /** 微信支付接口请求地址 */
    public static final String WX_PAY_API_URL = "https://api.mch.weixin.qq.com/";
    /** 微信统一预下单 */
    public static final String WX_PAY_API_URI = "pay/unifiedorder";
    /** 微信查询订单 */
    public static final String WX_PAY_ORDER_QUERY_API_URI = "pay/orderquery";
    /** 微信支付回调地址 */
    public static final String WX_PAY_NOTIFY_API_URI = "/notify/weChat";
    /** 微信退款回调地址 */
    public static final String WX_PAY_REFUND_NOTIFY_API_URI = "/notify/weChatRefund";

    public static final String WX_PAY_SIGN_TYPE_MD5 = "MD5";
    public static final String WX_PAY_SIGN_TYPE_SHA256 = "HMAC-SHA256";

    public static final String PAY_BODY = "支付中心-订单支付";
    public static final String FIELD_SIGN = "sign";

    /** 公共号退款 */
    public static final String WX_PAY_REFUND_API_URI= "secapi/pay/refund";
}
